package com.xidian.zhiancloud.dao.syset.usermanage;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.syset.EnterFoundList;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface EnterFoundMapper extends BaseMapper<EnterFoundList> {

    EnterFoundList selectByCompanyIdAndEnterprisename(
            @Param("companyid")Long companyid,
            @Param("enterprisename")String enterprisename);

    EnterFoundList selectByCompanyId(
            @Param("companyid")Long companyid);

    List<EnterFoundList> getEnterFoundList(@Param("companyid") Long companyid);

    int addEFAuthenticationInformation(
            @Param("companyid")Long companyid,
            @Param("enterprisename")String enterprisename,
            @Param("referred")String referred,
            @Param("industry")String industry,
            @Param("position") String position,
            @Param("positiondetail")String positiondetail,
            @Param("longitude")BigDecimal longitude,
            @Param("latitude")BigDecimal latitude);

    int updateEFCertificateManagement(
            @Param("id") String id,
            @Param("certificatename") String certificatename,
            @Param("certificationauthority") String certificationauthority,
            @Param("validity") Date validity,
            @Param("reviewreminderdate") Date reviewreminderdate,
            @Param("certificatephoto") String certificatephoto);

    int updateBasicEnterpriseInformation
            (@Param("id") String id,@Param("data") EnterFoundList data);

}
